import { RouteConfig } from "vue-router";
import Layout from "@/layout/index.vue";

const policy: RouteConfig = {
  path: "/policy",
  component: Layout,
  redirect: "/policy/index",
  name: "Policy",
  meta: {
    title: "policy",
    icon: "iconfont icon-userstoryicon",
    routerRuleName: "Policy"
  },
  children: [
    {
      path: "index",
      component: () => import("@/views/policy/index/policyList.vue"),
      name: "Policy",
      meta: {
        title: "policy",
        noCache: true,
        routerRuleName: "PolicyList"
      }
    },
    {
      path: "usbRule",
			component: () => import("@/views/policy/index/policyUSBRule.vue"),
			name: "USBRule",
			meta: {
				title: 'uubRule',
				noCache: true,
				hidden: true,
        type: "/policy/index", /**type用于页面左侧菜单的路由active效果判断 */
			}
    }
  ]
};

export default policy;